package com.catarc.unityback.entity.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author van
 * @date 2023/2/19 12:21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AnimationFrameData {
    private Long id;
    /**
     * 关联的对应工艺流程Id
     */
    private Long animationId;
    /**
     * 关联的对应工艺流程帧Id,同一帧可能会有多个对象数据
     */
    private Long animationFrameId;
    /**
     * 位置帧、动画帧、组合模型帧
     */
    private Integer type;
    /**
     * 该帧动画的消耗时间（运动所需要的时间）
     */
    private Float duration;
    /**
     * type如果是动画类型时,所对应的动画Id
     */
    private Long animationTypeObjId;
    /**
     * 模型名称
     */
    private String objName;
    private Float positionX;
    private Float positionY;
    private Float positionZ;
    private Float rotationX;
    private Float rotationY;
    private Float rotationZ;
    private Float scaleX;
    private Float scaleY;
    private Float scaleZ;
    private LocalDateTime gmtCreate;
}
